<!doctype html>
<html>
	<head th:replace="/pc/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>系统配置</title>
			<link type="text/css" rel="stylesheet" th:href="@{{css}/pc/systemconfig/systemconfig.css(css=${css})}">
			<style>
				.search-radio{float:none;}
			</style>
		</th:block>
	</head>
	<body>
		<div class="wrap">
			<div class="tab">
				<ul class="tab-hd">
					<li><a>超时设置</a></li>
					<li><a>微信设置</a></li>
					<li><a>支付宝设置</a></li>
					<li><a>阿里云设置</a></li>
					<li><a>优惠设置</a></li>
				</ul>
				
				<form id="form">
					<ul class="tab-bd">
						<li class="tab-bd-li">
							<table class="around_list" style=" margin:0 auto;">
								<tr>
									<td class="lg"><label>确认超时：</label></td>
						            <td class="lg">
						            	<div id="confirmtimeout" class="search-select" rules="required" idField="value" textField="text" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（分钟）</span></td>
						            <td class="lg"><label>支付超时：</label></td>
						            <td class="lg">
						            	<div id="paytimeout" class="search-select" rules="required" idField="value" textField="text" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（分钟）</span></td>
						        </tr>
						        <tr>
									<td class="lg"><label>收货超时：</label></td>
						            <td class="lg">
						            	<div id="receivetimeout" class="search-select" rules="required" idField="value" textField="text" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（天）</span></td>
						            <td class="lg"><label>退款超时：</label></td>
						            <td class="lg">
						                <div id="refundtimeout" class="search-textbox" rules="required,int" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（天）</span></td>
						        </tr>
								<tr>
									<td class="lg"><label>积分超时：</label></td>
						            <td class="lg">
						                <div id="integraltimeout" class="search-textbox" rules="required,int" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（年）</span></td>
						            <td class="lg"><label>钻石超时：</label></td>
						            <td class="lg">
						                <div id="diamondtimeout" class="search-textbox" rules="required,int" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（天）</span></td>
						        </tr>
								<tr>
									<td class="lg"><label>验证码超时：</label></td>
						            <td class="lg">
						                <div id="vercodetimeout" class="search-textbox" rules="required,int" width="200" height="28"></div>
						            </td>
						            <td class="lg left" colspan="4"><span class="time">（分钟）</span></td>
						        </tr>
							</table>
						</li>
						<li class="tab-bd-li">
							<table class="around_list" style=" margin:0 auto;">
								<tr>
						            <td class="lg"><label>微信开关：</label></td>
						            <td class="lg">
						                <div id="wxswitch" class="search-textradio" rules="required" idField="value" textField="text" groupName="wxkg" itemWidth="80" width="400" height="28" style="float:left;line-height:30px;" defaultValue="0"></div>
						            </td>
						        </tr>
						        <!-- 
						        <tr>
						            <td class="lg"><label>微信通知：</label></td>
						            <td class="lg">
						                <div id="wxnotify" class="search-textradio" rules="required" idField="value" textField="text" groupName="wxtz" itemWidth="80" width="400" height="28" style="float:left;" defaultValue="0"></div>
						            </td>
						        </tr>
						         -->
								<tr>
						            <td class="lg"><label>微信应用标识：</label></td>
						            <td class="lg" style="width:400px;">
						                <div id="wxappid" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>微信应用密钥：</label></td>
						            <td class="lg">
						                <div id="wxappkey" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>微信商户标识：</label></td>
						            <td class="lg">
						                <div id="wxmerid" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>微信接口密钥：</label></td>
						            <td class="lg">
						                <div id="wxapikey" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>微信证书文件：</label></td>
						            <td class="lg">
						                <div id="wxcerfile" class="search-textbox" rules="required" editabled="false" width="400" height="28" style="float:left;"></div>
						            </td>
						            <input id="wxcerfileselect" type="file" style="display: none;" accept=".p12"/>
						        </tr>
								<tr>
						            <td class="lg"><label>微信验证令牌：</label></td>
						            <td class="lg">
						                <div id="wxvertoken" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>微信验证文件：</label></td>
						            <td class="lg">
						                <div id="wxverfile" class="search-textbox" rules="required" editabled="false" width="400" height="28" style="float:left;"></div>
						            </td>
						            <input id="wxverfileselect" type="file" style="display: none;" accept=".txt"/>
						        </tr>
								<tr>
						            <td class="lg"><label>微信关注欢迎语：</label></td>
						            <td class="lg">
						                <div id="wxwelcome" class="search-textarea" rules="required" width="400" height="100" style="float:left;"></div>
						            </td>
						        </tr>
							</table>
						</li>
						<li class="tab-bd-li">
							<table class="around_list" style=" margin:0 auto;">
								<tr>
						            <td class="lg"><label>支付宝开关：</label></td>
						            <td class="lg">
						                <div id="apswitch" class="search-textradio" rules="required" idField="value" textField="text" groupName="apkg" itemWidth="80" width="400" height="28" style="float:left;line-height:30px;" defaultValue="0"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>支付宝应用标识：</label></td>
						            <td class="lg">
						                <div id="apappid" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>支付宝公钥：</label></td>
						            <td class="lg">
						                <div id="appubkey" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>支付宝商户私钥：</label></td>
						            <td class="lg">
						                <div id="apmerprikey" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
							</table>
						</li>
						<li class="tab-bd-li">
							<table class="around_list" style=" margin:0 auto;">
								<tr>
						            <td class="lg"><label>阿里云通知：</label></td>
						            <td class="lg">
						                <div id="aynotify" class="search-textradio" rules="required" idField="value" textField="text" groupName="aytz" itemWidth="80" width="400" height="28" style="float:left;line-height:30px;" defaultValue="0"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>阿里云应用标识：</label></td>
						            <td class="lg">
						                <div id="ayappid" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>阿里云应用密钥：</label></td>
						            <td class="lg">
						                <div id="ayappkey" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
								<tr>
						            <td class="lg"><label>阿里云签名：</label></td>
						            <td class="lg">
						                <div id="aysign" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
						            </td>
						        </tr>
							</table>
						</li>
						<li class="tab-bd-li">
							<table class="around_list" style=" margin:0 auto;">
								<tr>
						            <td class="lg"><label>钻石抵扣比例：</label></td>
						            <td class="lg">
						                <div id="diadeductratio" class="search-textbox" rules="required,int" width="200" height="28"></div>
						            </td>
						            <td class="lg left"><span class="time">（%）</span></td>
						        </tr>
							</table>
						</li>
					</ul>
					<input class="org-save" type="button" onclick="saveData()" value="保存"/>
				</form>
			</div>
			
		</div>
	<script type="text/javascript" th:src="@{{js}/pc/systemconfig/systemconfig.js(js=${js})}"></script>
	</body>
</html>